﻿using System.Web.Mvc;

namespace ValidationFramework.Web.MVC
{
	public class ValidationHelper
	{
		private readonly ViewContext viewContext;
		
		/// <summary>
		/// Initializes a new instance of the ValidationHelper class.
		/// </summary>
		public ValidationHelper(ViewContext context)
		{
			viewContext = context;
		}

		public string GenerateClientScripts(string htmlFormId)
		{
			return ClientValidation.GenerateScripts(htmlFormId, viewContext);
		}
	}
}
